import {request} from "./request";

export function getAllDepartment(data) {
  return request({
    url: "/getAllDepartment",
    method: "post",
    params: {
      pageNo: data.pageNo,
      pageSize: data.pageSize
    }
  })
}

export function delDepartment(id) {
  return request({
    url: "/delDepartment",
    method: "post",
    params: {
      id: id
    }
  })
}

export function addDepartment(data) {
  return request({
    url: "/addDepartment",
    method: "post",
    params: {
      departmentName: data.departmentName,
      manager: data.manager

    }
  })
}
